{* smarty *}
{extends file='include/base_with_menu.tpl'}

{block name='content'}
<div class="layout">
    <a href="/market/se/project/add/page">添加项目</a>
</div>
<h3 class="blockTitle">项目列表</h3>
<div class="layout">
<table class="tbData01" width="100%" cellspacing="0" cellpadding="0">
    <tr>
        <th style="width:auto;">项目时间</th>
        <th style="width:auto;">项目名称</th>
        <th style="width:auto;">项目时长</th>
        <th style="width:30%;">项目成员</th>
        <th style="width:30%;">项目学校</th>
        <th style="width:auto;">发单量</th>
    </tr>
    {foreach $projects as $project}
    <tr {if $project@index is odd}class="even"{/if}>
        <td>{$project.start_time|date_format:'%Y-%m-%d'}</td>
        <td><a href="/market/se/project/detail?id={$project.id}" target="_blank">{$project.name|escape}</a></td>
        <td>{date_sub from=$project.start_time to=$project.end_time format='%a'}</td>
        <td>{$members[$project.id]|escape|default:'无'}</td>
        <td>{$schools[$project.id]|escape|default:'无'}</td>
        <td>0</td>
    </tr>
    {foreachelse}
    <tr><td colspan="6">没有项目数据</td></tr>
    {/foreach}
</table>
</div>
<form>
{include file='include/page.tpl'} 
{call name=pagination form_id="log_form" page=$pagination.page total=$pagination.total}
</form>
{/block}
